// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import MintUi from 'mint-ui'
import 'mint-ui/lib/style.css'
import './assets/mui/css/mui.css'
import './assets/mui/css/icons-extra.css'
import vueResource from 'vue-resource'
import axios from 'axios'
import preview from 'vue-preview'
import store from './store/store'

Vue.use(MintUi)
Vue.use(vueResource)
Vue.http.options.root = 'http://www.lovegf.cn:8899/'
Vue.config.productionTip = false
Vue.prototype.$axios=axios;
Vue.prototype.$axios.defaults.baseURL = 'http://www.lovegf.cn:8899/';
Vue.prototype.$axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded';

Vue.use(preview)
/* eslint-disable no-new */
new Vue({
  el: '#app',
  created(){
    console.log(this)
  },
  router,
  components: {
    App
  },
  template: '<App/>',
  store
})

